package com.example.demo.Service.imp;

import com.example.demo.Service.UserService;
import com.example.demo.entity.User;
import com.example.demo.mappers.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@SuppressWarnings("AlibabaServiceOrDaoClassShouldEndWithImpl")
@Service
public class UserServiceimp implements UserService {
    private UserMapper userMapper;

    @Autowired
    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public List<User> list(User user) {
        return userMapper.list(user);
    }

    @Override
    public User cha(String id) {
        return userMapper.check(id);
    }

    @Override
    public Integer xiugai(Integer id, Integer age) {
        return userMapper.xiugai(id, age);
    }

    @Override
    public Integer zengjia(User user) {
        return userMapper.zengjia(user);
    }

    @Override
    public Integer xiugaibiao(User user) {
        return userMapper.xiugaibiao(user);
    }

    @Override
    public boolean removeByIds(Integer...gids) {
        return userMapper.removeByIds(gids);
    }
}
